home *** CD-ROM | disk | FTP | other *** search
- /*
-
- reader.c - a simple example of how to read a multi-byte Uforce packet
-
- Ethan Dicks <erd@kumiss.UUCP>
-
- Version 1.0 24-Mar-1992
-
- */
-
- #include <stdio.h>
- #include "Uforce.h"
-
- void main ()
- {
- Uforce_data U;
-
- init_NES();
- while(1)
- {
-
- /* Aquire a sample buffer */
- query_Uforce(&U);
-
- /* Display the sample buffer */
- printf("%02x %02x %02x %02x %02x %02x %02x %02x %02x\r",
- U.f0, U.a0, U.a1, U.a2, U.a3, U.a4, U.a5, U.a6, U.a7);
- }
- }
-